package com.bub.pay.framework.redis.model;

import java.io.Serializable;
import java.util.LinkedHashMap;

public class SmsModel implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -7361799655156642296L;

    private String phoneNum;
    private String templateId;
    private LinkedHashMap<String, String> data;

    public SmsModel() {
    }

    public SmsModel(String phoneNum, String templateId) {
        this.phoneNum = phoneNum;
        this.templateId = templateId;
        this.data = new LinkedHashMap<>();
    }

    /**
     * 往data存数据
     *
     * @param key   key
     * @param value 值
     */
    public void putData(String key, String value) {
        data.put(key, value);
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public LinkedHashMap<String, String> getData() {
        return data;
    }

    public void setData(LinkedHashMap<String, String> data) {
        this.data = data;
    }

}
